<fieldset>
    <legend>Información servicios</legend>
    <table border="1">
        <thead>
            <tr>
                <td>Tipo servicio</td>
                <td>Tipo entidad prestadora</td>
                <td>Nombre entidad prestadora</td>
                <td>Editar</td>
                <td>Borrar</td>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($services as $servicio): ?>
                <tr>
                    <td><?php echo $servicio['Service']['tipo_servicio']; ?></td>
                    <td><?php echo $servicio['Service']['tipo_entidad_prestadora']; ?></td>
                    <td><?php echo $servicio['Service']['nombre_entidad_prestadora']; ?></td>
                    <td><?php
            if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                echo $ajax->link("Editar", array('controller' => 'Services', "action" => "edit", $servicio['Service']['id'], $this->data['Service']['poll_id']), array('update' => 'services', 'indicator' => 'loading'));
            }
                ?></td>
                    <td><?php
                    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
                        echo $ajax->link("Borrar", array('controller' => 'Services', "action" => "delete", $servicio['Service']['id'], $this->data['Service']['poll_id']), array('update' => 'services', 'indicator' => 'loading'), '¿Desea Eliminar El Registro?');
                    }
                    ?></td>
                </tr>
<?php endforeach; ?>
        </tbody>
    </table>
    <?php
    if ($usuario['User']['group_id'] != 5 && $usuario['User']['group_id'] != 6 && $visto_bueno['Poll']['visto_bueno'] != 'Si') {
        echo $ajax->link("Adicionar", array('controller' => 'Services', "action" => "add", $this->data['Service']['poll_id']), array('update' => 'services', 'indicator' => 'loading'));
    }
    ?>
</fieldset>
